<template>
    <h1>我是公众号登录</h1>
      <img :src="qrcode" width="240"/>
      <hr>
      <div id="result"></div>
</template>
<script setup>
  var qrcode = ref("")
  const handleLoadQrcode = async ()=>{
    const resp = await useHttpGet("/v1/wxgzlogin/login")
    qrcode.value = "data:image/jpeg;base64,"+resp.data.img
  }

  onMounted(()=>{
    handleLoadQrcode()
  })

</script>